package cn.hl.enums;

import lombok.Getter;

@Getter
public enum  GlobalExceptionCode {
    SUCCESS("成功","0"),
    FAIL("失败","-1"),
    PARAM_IS_NOT_BULL("参数不能为空","1001"),
    SERVICE_DEMOTE("熔断触发，服务降级，请稍后重试","1002"),
    OUT_OF_STOCK("库存不足","2001"),
    OUT_OF_BALANCE("余额不足","3001"),
    NOT_HAVE_MOVIE_TICKET("尚未拥有此电影票，如需观看，请购买","3002"),
    USED("电影票已经被使用","3003"),
    OUT_TIME_MOVIE("电影票已过期，过期不可观看","3004");

    private String message;

    private String code;

    GlobalExceptionCode(String message, String code) {
        this.message = message;
        this.code = code;
    }
}

